import Vue from 'vue';//引入Vue对象，因为要用它的use
import Router from 'vue-router'//引入vue-router


//使用路由插件
Vue.use(Router);

//配置路由
const router =  new Router({
    routes: [
        {
            path:"/jingdong",  
            component: () => import('./views/jingdong.vue')      
        },
        {
            path:"/searchpage",
            // component:searchpage
            component: () => import('./views/searchpage.vue')
        },
        {
            path:"/signpage",
            component: () => import('./views/signpage.vue')
        }
    ]
});

//导出
export default router;